import request from '@/utils/request';

// 调整任务
// 列表接口
export async function getListData(params, activeKey) {
  console.log('asdadadadas', activeKey);
  switch (Number(activeKey)) {
    case 1:
      return request(`/esApi/serChart/queryEntryChart`, {
        method: 'POST',
        body: {
          ...params,
        },
      });
    // break;
    case 2:
      return request(`/esApi/serChart/queryDimissionChart`, {
        method: 'POST',
        body: {
          ...params,
        },
      });
    case 3:
      return request(`/esApi/serChart/queryLaborContChart`, {
        method: 'POST',
        body: {
          ...params,
        },
      });
    // break;
    default:
      return request(`/esApi/serChart/queryConsultChart`, {
        method: 'POST',
        body: {
          ...params,
        },
      });
  }
}

export async function getInsListData(params) {
  return request(`/esApi/serChart/queryInsSerChart`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getAccuListData(params) {
  return request(`/esApi/serChart/queryAccuSerChart`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getRcrdListData(params) {
  return request(`/esApi/serChart/queryRcrdSerChart`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
